bobcat848/dsh-calculator: View DeepSeek API Costs and Balance in the DSH Web GUI

dsh-calculator is a DSH web plugin designed to centrally display DeepSeek API costs and account balance. It provides a collapsible floating card in the upper-right corner of the GUI, showing per-model costs for the current session, cumulative costs for the day (reset at midnight local time), and account balance (cached for 30 seconds). The plugin only bills traffic routed through `deepseek-official`, applies Beijing peak-valley pricing with half-price on weekends for the entire day, and supports both Chinese and English interfaces. Installation can be performed online via curl or PowerShell, or by cloning the repository and running local scripts, writing to the plugin directory, updating the configuration, and restarting DSH web. If the API key is missing, the balance display will show an error, but the cost panel functions normally. The plugin estimates costs and is subject to the current dsh process privileges.

Read More